#selection {
  border: 1px solid var(--border-color, #ddd);
  border-radius: 2px;
  background-color: var(--base-color, #FFF);
}

.item {
  cursor: pointer;
  width: 100%;
  background-color: var(--baseSecond-color, #FBFBFB);
  border: 1px solid var(--borderSecond-color, #EAEAEA);
}

.item.selected,
#dropdown::slotted(*:hover),
#dropdown::slotted(*:focus-visible) {
  color: var(--textSecond-color);
  background-color: var(--highlighted-color, #00AAA0);
  border-color: var(--highlighted-color, #00AAA0);
}

.item.dragged::before {
  border-color: var(--border-color, #EAEAEA);
}

.item-remove-button {
  margin-left: auto;
}

.item-remove-button:hover,
.item-remove-button:focus-visible {
  color: var(--warning-color);
}

#dropdown {
  background-color: var(--base-color, #FFF);
  border-color: var(--border-color, #EAEAEA);
  max-height: 400px;
}

[hidden] {
  display: none !important;
}

/* show number for each selected item */

#selection {
  counter-reset: section;
}

.item::before {
  counter-increment: section;
  content: counter(section) ":";
  padding-left: 0.5rem;
}

/* mostly cloned command bar settings panel styles */

a {
  color: var(--highlighted-color);
  text-decoration: underline dotted;
  cursor: pointer;
}

a:hover,
a:focus {
  text-decoration: underline solid;
}

a[target="_blank"]::after {
  content: "E";
  display:inline-block;
  text-decoration: none;
  font-family: Icons;
  margin-left: 0.25em;
  font-size: 0.75em;
}

.warning-text {
  color: var(--warning-color);
  opacity: 1 !important;
  font-weight: bold;
}

*::-moz-focus-inner {
  border: 0;
}

.cb-setting {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 30px 0 10px 0;
  cursor: default;
}

.cb-setting:last-of-type {
  margin-bottom: 30px;
}

.cb-setting-name {
  flex-basis: 0;
  flex-grow: 1;
  font-size: 16px;
}

.cb-setting-description {
  opacity: .5;
  flex-basis: 100%;
  font-size: 14px;
  transition: opacity .3s;
}

.cb-setting:hover .cb-setting-description {
  opacity: 1;
}

/* special input stylings */

.cb-setting .cb-setting-description + * {
  margin-top: 10px;
}

.cb-setting .toggle-button + .cb-setting-description {
  margin-top: 10px;
}

/* toggle button layout */

.toggle-button {
  appearance: none;
  display: inline-block;
  width: 47px;
  padding: 8px 0 6px 0;
  margin-left: 10px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 2px;
  background: var(--base-color, #FFF);
  color: var(--text-color, #555555);
  text-align: center;
  font-size: 1rem;
  font-family: inherit;
  transition: background .5s;
}

.toggle-button::after {
  content: "__MSG_toggleButtonOff__";
}

.toggle-button:checked::after {
  content: "__MSG_toggleButtonOn__";
}

.toggle-button:checked {
  border-color: var(--highlighted-color, #00AAA0);
  background: var(--highlighted-color, #00AAA0);
  color: var(--textSecond-color, #FFF);
}

/* input field layout */

.input-field {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 2px;
  background: var(--base-color, #FFF);
  box-shadow: none;
  color: var(--text-color, #555555);
  text-align: center;
  text-overflow: ellipsis ellipsis;
  -moz-appearance: textfield;
}

/* select field layout */

.select-wrapper {
  width: 100%;
  position: relative;
}

.select-wrapper::after {
  position: absolute;
  top: 50%;
  right: 9px;
  color: var(--text-color, #555555);
  content: "D";
  font-size: 11px;
  font-family: Icons;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-field {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 25px 4px 5px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 2px;
  background-color: var(--base-color, #FFF);
  color: var(--text-color, #555555);
  text-align: center;
  text-overflow: ellipsis;
  -moz-appearance: none;
       appearance: none;
}

/* text field layout */

.text-field {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 2px;
  background: var(--base-color, #FFF);
  box-shadow: none;
  color: var(--text-color, #555555);
  font-family: "NunitoSans Regular", "Arial", sans-serif;
  resize: vertical;
}

/* custom multi select field layout */

.multi-select-field {
  width: 100%;
  background: var(--base-color, #FFF);
  color: var(--text-color, #555555);
  font-family: "NunitoSans Regular", "Arial", sans-serif;
}

.multi-select-field > * {
  padding: 0.5em 0.5em;
}
